package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.UserBank;
import com.retailshop.shopuser.entity.UserRank;
import com.retailshop.shopuser.mapper.UserBankMapper;
import com.retailshop.shopuser.service.UserBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("userBankService")
public class UserBankServiceImpl implements UserBankService {

    @Autowired
    UserBankMapper userBankMapper;

    @Override
    public int deleteByPrimaryKey(Integer ucId) {
        return userBankMapper.deleteByPrimaryKey(ucId);
    }

    @Override
    public int insert(UserBank record) {
        return userBankMapper.insert(record);
    }

    @Override
    public int insertSelective(UserBank record) {
        return userBankMapper.insertSelective(record);
    }

    @Override
    public UserBank selectByPrimaryKey(Integer ucId) {
        return userBankMapper.selectByPrimaryKey(ucId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserBank record) {
        return userBankMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserBank record) {
        return userBankMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<UserRank> selectUserBankByUserId(int Id) {
        return userBankMapper.selectUserBankByUserId(Id);
    }
}
